home *** CD-ROM | disk | FTP | other *** search
Makefile | 1998-06-18 | 1.5 KB | 74 lines |
- CP = copy QUIET DATES
- RM = delete QUIET FORCE
- ASM = PhxAss QUIET
- O2M = o2m >NIL:
- BUMP = bumprev >NIL:
- ADOC = autodoc -a -s -C -I
-
- RELEASE = 5
-
- FILES = thx-play.m thx-play_020.m \
- thxplay.library thxplay.library.020 \
- thxplay.o thxplay_020.o \
- thxplay.doc thxplay.guide
-
- SRCS = thxplay.asm init.asm song.asm volume.asm \
- multisong.asm note.asm misc.asm \
- library.asm thxplay.library_rev.i
-
- all: $(FILES)
- clean:; $(RM) $(FILES)
- dist: all install; $(RM) $(FILES)
- install: $(FILES)
- $(CP) thxplay.library(%|.020) /
- $(CP) thx-play(%|_020).m /developer/E/tools/
- $(CP) thxplay(%|_020).o /developer/lib
- $(CP) thxplay.doc /developer
- $(CP) thxplay.guide /
- make -C /developer remake
-
- #-----------
- # the documentation
-
- thxplay.doc: $(SRCS)
- $(ADOC) $^ > $@
-
- thxplay.guide: thxplay.doc
- doc2guide thxplay
-
- #-----------
- # the E interface
-
- thx-play.m: $(SRCS)
- $(ASM) NOEXE $< set STACKARGS,ENAMES TO thx-play.o
- $(O2M) thx-play
- $(RM) thx-play.o
-
- thx-play_020.m: $(SRCS)
- $(ASM) NOEXE $< set USE020,STACKARGS,ENAMES TO thx-play_020.o
- $(O2M) thx-play_020
- $(RM) thx-play_020.o
-
- #-----------
- # the link library
-
- thxplay.o: $(SRCS)
- $(ASM) NOEXE $< set STACKARGS,CNAMES TO $@
-
- thxplay_020.o: $(SRCS)
- $(ASM) NOEXE $< set USE020,STACKARGS,CNAMES TO $@
-
- #-----------
- # the shared library
-
- thxplay.library: thxplay.asm $(SRCS)
- $(ASM) EXE $< set LIBRARY TO $@
-
- thxplay.library.020: $(SRCS)
- $(ASM) EXE $< set LIBRARY,USE020 TO $@
-
-
- thxplay.library_rev.i:
- $(BUMP) $(RELEASE) thxplay.library
- $(RM) thxplay.library_rev.h
-